↳ Prolog
↳ PrologToPiTRSProof
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
row2col_in([], [], [], []) → row2col_out([], [], [], [])
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
U4(X, Xs, Ys, Cols, Cols1, As, row2col_out(Xs, Cols, Cols1, As)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
row2col_in([], [], [], []) → row2col_out([], [], [], [])
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
U4(X, Xs, Ys, Cols, Cols1, As, row2col_out(Xs, Cols, Cols1, As)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
TRANSPOSE_IN(A, B) → U11(A, B, transpose_aux_in(A, [], B))
TRANSPOSE_IN(A, B) → TRANSPOSE_AUX_IN(A, [], B)
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → ROW2COL_IN(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U41(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN(Xs, Cols, Cols1, As)
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → U31(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
row2col_in([], [], [], []) → row2col_out([], [], [], [])
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
U4(X, Xs, Ys, Cols, Cols1, As, row2col_out(Xs, Cols, Cols1, As)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
TRANSPOSE_IN(A, B) → U11(A, B, transpose_aux_in(A, [], B))
TRANSPOSE_IN(A, B) → TRANSPOSE_AUX_IN(A, [], B)
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → ROW2COL_IN(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U41(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN(Xs, Cols, Cols1, As)
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → U31(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
row2col_in([], [], [], []) → row2col_out([], [], [], [])
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
U4(X, Xs, Ys, Cols, Cols1, As, row2col_out(Xs, Cols, Cols1, As)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN(Xs, Cols, Cols1, As)
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
row2col_in([], [], [], []) → row2col_out([], [], [], [])
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
U4(X, Xs, Ys, Cols, Cols1, As, row2col_out(Xs, Cols, Cols1, As)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN(Xs, Cols, Cols1, As)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols)) → ROW2COL_IN(Xs, Cols)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
row2col_in([], [], [], []) → row2col_out([], [], [], [])
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
U4(X, Xs, Ys, Cols, Cols1, As, row2col_out(Xs, Cols, Cols1, As)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, Accm))
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4(X, Xs, Ys, Cols, Cols1, As, row2col_in(Xs, Cols, Cols1, As))
U4(X, Xs, Ys, Cols, Cols1, As, row2col_out(Xs, Cols, Cols1, As)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
row2col_in([], [], [], []) → row2col_out([], [], [], [])
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(Rs, row2col_in(R, .(C, Cs)))
U21(Rs, row2col_out(Cols1, Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
row2col_in(.(X, Xs), .(.(X, Ys), Cols)) → U4(Ys, row2col_in(Xs, Cols))
U4(Ys, row2col_out(Cols1, As)) → row2col_out(.(Ys, Cols1), .([], As))
row2col_in([], []) → row2col_out([], [])
row2col_in(x0, x1)
U4(x0, x1)
From the DPs we obtained the following set of size-change graphs: